import request from '@/utils/request'

// 查询举报中间表列表
export function listReportandtype(query) {
  return request({
    url: '/biz/reportandtype/list',
    method: 'get',
    params: query
  })
}

// 查询举报中间表详细
export function getReportandtype(id) {
  return request({
    url: '/biz/reportandtype/' + id,
    method: 'get'
  })
}

// 新增举报中间表
export function addReportandtype(data) {
  return request({
    url: '/biz/reportandtype',
    method: 'post',
    data: data
  })
}

// 修改举报中间表
export function updateReportandtype(data) {
  return request({
    url: '/biz/reportandtype',
    method: 'put',
    data: data
  })
}

// 删除举报中间表
export function delReportandtype(id) {
  return request({
    url: '/biz/reportandtype/' + id,
    method: 'delete'
  })
}
